package com.zp.singleton;

/**
 * @author zhpeng
 * @discription 饿汉式，线程安全(浪费内存)
 * @created 2021/9/3 14:07
 */
public class Singleton03 {
    private Singleton03 singleton03 = new Singleton03();
    private Singleton03(){};
    private Singleton03 getInstance(){
        return singleton03;
    }
}
